Remove peak_sign in favour of main_channel_index#4624
Conversation
…tings to reload them
…less_peak_sign_more_main_channel
…less_peak_sign_more_main_channel
for more information, see https://pre-commit.ci
peak_sign in favour of main_channelpeak_sign in favour of main_channel_index
| extension_name = "templates" | ||
| depend_on = ["random_spikes|waveforms"] | ||
| need_recording = True | ||
| need_recording = False |
There was a problem hiding this comment.
If you have waveforms, you do not need the Recording. Not sure how to deal with this.
There was a problem hiding this comment.
we could do as we do with optional dependencies, i.e., having a function that evaluates if this is needed on the fly based on othere available extensions?
|
Hey @ecobost , I went through your comments on #4374 and mostly resolved them (sorry it's on a new PR, I didn't have permission to push to Sam's branch). Here's a list of "controversial" things to discuss.
@samuelgarcia @alejoe91 could you take a look at this - would be great to get merged next week!! |
| """ | ||
|
|
||
| _main_properties = [ | ||
| "main_channel_index", |
There was a problem hiding this comment.
let's be careful because channel indices could change (e.g., build analyzer with/without bad channels).. how should we deal with it?
| recording, | ||
| format="memory", | ||
| folder=None, | ||
| main_channel_index=None, |
There was a problem hiding this comment.
| main_channel_index=None, | |
| main_channel_indices=None, |
?
Sequel to #4374
I didn't have permission to push to Sam's branch, so I made my own...
Idea is that when you make your analyzer, it must have a
peak_sign,peak_modeand hence amain_channel_index. We then use these throughout the codebase instead of propagating the other stuff.@samuelgarcia did the tedious work, but now I'm refining and getting the tests to pass...
WIP!